package com.alibaba.controller;

import com.alibaba.bean.PostLike;
import com.alibaba.bean.PostLikeResult;
import com.alibaba.service.PostLikeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/post")
public class PostLikeController {

    @Autowired
    private PostLikeService postLikeService;

    @PostMapping("/postLike")
    public PostLikeResult postLike(PostLike postLike) {
        return postLikeService.like(postLike);
    }

}
